import {markRaw} from "vue"
import SelectTemplate from "./select-template.vue"

export const addSchema: FormSchema = {
    "style": {
        "width": "auto"
    },
    "formItemLayout": {
        "labelCol": {
            "span": 6
        },
        "wrapperCol": {
            "span": 18
        }
    },
    "formItem": [
        {
            "type": "input",
            "label": "用户名",
            "key": "username",
            "value": "",
            "props": {
                "disabled": "true"
            }
        },
        {
            "type": "component",
            "label": "选择策略",
            "key": "tempid",
            "value": undefined,
            "component": markRaw(SelectTemplate),
            "props": {
                "placeholder": "请选择策略"
            },
            "rules": [
                {
                    "required": true,
                    "message": "请选择策略"
                }
            ]
        }
    ]
}
